package com.bll.impl.Activity_user;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.bean.ActivityUserBean;
import com.bll.Action;
import com.dao.ActivityUserDao;

public class ShowActivity_userAction implements Action{
	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		HttpSession session=request.getSession();
		//int userId=Integer.parseInt(session.getAttribute("userId").toString());
	    int activityId=Integer.parseInt(request.getParameter("activityId"));
	    session.setAttribute("activityId", activityId);
	    System.out.println("activityId:"+activityId);
		String lujing=request.getParameter("lujing");
	    ActivityUserDao dao=new ActivityUserDao();
	    List<ActivityUserBean> list =dao.selectAll(activityId);
	    //System.out.println("bean:"+bean);
	    request.setAttribute("list", list);
		return lujing;
	}
}
